package com.ijava.base.domain;

public class Role extends BaseDomain {
	private String roleId;
	private String roleCode;
	private String roleName;
	private String roleExplain;

	public Role() {
		super();
	}

	public Role(String roleId) {
		super();
		this.roleId = roleId;
	}

	public Role(String roleCode, String roleName, String roleExplain) {
		super();
		this.roleCode = roleCode;
		this.roleName = roleName;
		this.roleExplain = roleExplain;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleExplain() {
		return roleExplain;
	}

	public void setRoleExplain(String roleExplain) {
		this.roleExplain = roleExplain;
	}

	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Role [");
		if (roleId != null) {
			builder.append("roleId=");
			builder.append(roleId);
			builder.append(", ");
		}
		if (roleCode != null) {
			builder.append("roleCode=");
			builder.append(roleCode);
			builder.append(", ");
		}
		if (roleName != null) {
			builder.append("roleName=");
			builder.append(roleName);
			builder.append(", ");
		}
		if (roleExplain != null) {
			builder.append("roleExplain=");
			builder.append(roleExplain);
		}
		builder.append("]");
		return builder.toString();
	}



}
